home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14493 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.lang.c++
  2. Path: newsfeed.internetmci.com!miwok!linex1!news
  3. From: mfried@linex.com (Marty Fried)
  4. Subject: Re: VC 4.0 Link Errors - Can Someone Help Me Resolve, Please
  5. X-Nntp-Posting-Host: sp102.linex.com
  6. Message-ID: <315e29f2.27857335@news.linex.com>
  7. Sender: news@linex1.linex.com
  8. Organization: Cirrius Cybernetics Corp
  9. X-Newsreader: Forte Agent .99e/32.194
  10. References: <4ja5u3$qh8@news3.digex.net>
  11. Date: Sun, 31 Mar 1996 06:48:22 GMT
  12.  
  13. Once upon a time (OK, it was 27 Mar 1996 01:33:55 GMT),
  14. bablank@access.digex.net (Bruce Blank) wrote:
  15.  
  16. >Hello All,
  17. >
  18. >     I am a new Windows 95 user and am using Visual C++ 4.0 for the first 
  19. >time. I'm trying to compile and link a program that uses the IShellLink 
  20. >interface. I get the following linker errors:
  21. >
  22. >--------------------Configuration: getsgdat - Win32 
  23. >Debug--------------------
  24. >Compiling...
  25. >getsgdat.cpp
  26. >Linking...
  27. >getsgdat.obj : error LNK2001: unresolved external symbol 
  28. >__imp__CoInitialize@4
  29. >getsgdat.obj : error LNK2001: unresolved external symbol _IID_IPersistFile
  30. >getsgdat.obj : error LNK2001: unresolved external symbol 
  31. >__imp__CoCreateInstance@20
  32. >Debug/getsgdat.exe : fatal error LNK1120: 3 unresolved externals
  33. >Error executing link.exe.
  34. >getsgdat.exe - 4 error(s), 0 warning(s)
  35.  
  36. I haven't used those functions, but it looks like you may be missing a
  37. library in the link input section of the build options, probably one
  38. of the OLE libs.  I'm not sure how to find out which one, but maybe
  39. you could create a new test project, with OLE support, and see what
  40. libs it uses, and try adding any to your project that are missing.
  41.  
  42. _______________________________________________________
  43. Marty Fried - mfried@linex.com     Press Enter to Exit
  44. San Anselmo, CA                           -NT message
  45. (MSVC4 + MFC) && (Win95 || NT);             
  46.